import {createStore} from 'redux'

import reducer from './reducer'

const store = createStore(
  reducer,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
store.subscribe(() => {
    console.log(111);
  const state=store.getState()
  localStorage.setItem('key',JSON.stringify(state.list))
})
export default store
